/**
 * @单位名称：飞羽个人
 * 	Copyright (c) 2017 All Rights Reserved.
 * @系统名称：测试
 * @工程名称：
 * @文件名称: 
 * @类路径: 
 */
package com.feiyu.controller;

import com.feiyu.service.HouseUnitChangeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import com.feiyu.bean.HouseUnitChange;
import com.feiyu.common.controller.BaseController;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 
 * 
 * @see
 * @author 	nanshouxiao
 * @date	2018-5-23 10:19:29
 * @version	V1.0.0
 */
@Controller
@RequestMapping("houseUnitChange")
public class HouseUnitChangeController extends BaseController<HouseUnitChange>
{
    @Autowired
    private HouseUnitChangeService houseUnitChangeService;

    @PostMapping("importAllInfoByFileDir")
    @ResponseBody
    public String importAllInfoByFileDir(String filePath) {
        houseUnitChangeService.importAllInfoByFileDir(filePath);
        return "数据导入成功";

    }
}